import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import StaffList from '@/pages/StaffList'
import MyStaff from '@/pages/MyStaff'
import Search from '@/pages/Search'
import LoginIn from '@/pages/LoginIn'
import SignUp from '@/pages/SignUp'
import StaffListAlum from '@/pages/StaffListAlum'
import StaffAlum from '@/pages/StaffAlum'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login-in',
      name: 'login-in',
      component: LoginIn
    },
    {
      path: '/sign-up',
      name: 'sign-up',
      component: SignUp
    },
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/staff-list',
      name: 'staff-list',
      component: StaffList
    },
    {
     path: '/my-staff',
     name: 'my-staff',
     component: MyStaff
    },
    {
      path: '/search',
      name: 'search',
      component: Search
    },
    {
      path: '/staff-alum/:id',
      name: 'staff-alum',
      component: StaffAlum
    },
    {
      path: '/staff-list-alum/:id',
      name: 'staff-list-alum',
      component: StaffListAlum
    },

  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
